home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Bus / B / BPlan.cpt / Business Plan™ 1.2 / background_4923.txt < prev    next >
Text File  |  1990-08-11  |  11KB  |  462 lines

  1. -- background: 4923 from stack: in.2
  2. -- bmap block id: 11331
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on flashnGo
  8.   global theEntry,cleared,isDeposit,local
  9.   put 1 into isDeposit
  10.   put 0 into local
  11.   global ToHERE,WHICHLINE,THISFIELD
  12.   put the short name of the target into thisField
  13.   set cursor to 4
  14.   put textHeight of the target into leading
  15.   get rect of the target
  16.   put (trunc((item 1 of it + (((item 3 of it) - (item 1 of it))/2)) -8)) into ctrBtnH
  17.   put (trunc(((item 2 of the clickLoc) - (item 2 of the rect of the target) + (scroll of the target))/(textheight of the target))+1) into whichLine
  18.   put (trunc((((item 2 of the rect of the target) - (the scroll of the target)) + (whichLine * leading)) - (leading/2) +1)) into ctrBtnV
  19.   do "get" && "line whichLine of background field thisField"
  20.   if it is empty then
  21.     delete line whichLine of bg fld "deposit"
  22.     exit to HyperCard
  23.   end if
  24.   show btn "flasher" at ctrBtnH,ctrBtnV
  25.   play harpsichord c6
  26.   hide btn "Flasher"
  27.   answer "Edit line " & quote & line whichline of bg fld "deposit" & quote & "?" with "No" or "Yes"
  28.   if it is "Yes" then
  29.     put line whichLine of bg fld "deposit" into theEntry
  30.     if item 5 of theEntry is "1" then
  31.       put 1 into cleared
  32.     else
  33.       put 0 into cleared
  34.     end if
  35.     delete line whichLine of bg fld "deposit"
  36.     go cd "main"
  37.     get loc of bg btn "edit entry"
  38.     click at it
  39.   end if
  40. end flashnGo
  41.  
  42.  
  43.  
  44.  
  45. -- part 1 (field)
  46. -- low flags: 01
  47. -- high flags: 4007
  48. -- rect: left=35 top=40 right=287 bottom=464
  49. -- title width / last selected line: 0
  50. -- icon id / first selected line: 0 / 0
  51. -- text alignment: 0
  52. -- font id: 3
  53. -- text size: 9
  54. -- style flags: 0
  55. -- line height: 12
  56. -- part name: deposit
  57. ----- HyperTalk script -----
  58. on mouseUp
  59.   flashNGo
  60. end mouseUp
  61.  
  62.  
  63.  
  64. -- part 4 (button)
  65. -- low flags: 00
  66. -- high flags: A000
  67. -- rect: left=53 top=294 right=338 bottom=104
  68. -- title width / last selected line: 0
  69. -- icon id / first selected line: 7420 / 7420
  70. -- text alignment: 1
  71. -- font id: 0
  72. -- text size: 12
  73. -- style flags: 0
  74. -- line height: 16
  75. -- part name: Main
  76. ----- HyperTalk script -----
  77. on mouseUp
  78.   visual iris open to inverse
  79.   visual dissolve
  80.   go cd "main"
  81. end mouseUp
  82.  
  83.  
  84.  
  85. -- part 5 (button)
  86. -- low flags: 00
  87. -- high flags: A000
  88. -- rect: left=107 top=294 right=338 bottom=158
  89. -- title width / last selected line: 0
  90. -- icon id / first selected line: 20953 / 20953
  91. -- text alignment: 1
  92. -- font id: 0
  93. -- text size: 12
  94. -- style flags: 0
  95. -- line height: 16
  96. -- part name: Categories
  97. ----- HyperTalk script -----
  98. on mouseUp
  99.   set lockscreen to true
  100.   go cd "main"
  101.   put bg fld "categories" into categories
  102.   go back
  103.   DoList 998,categories,1
  104.   if the result > 0 then
  105.     put item 2 of the result into category
  106.   end if
  107.   go cd category
  108. end mouseUp
  109.  
  110.  
  111.  
  112. -- part 6 (button)
  113. -- low flags: 00
  114. -- high flags: A000
  115. -- rect: left=160 top=294 right=338 bottom=213
  116. -- title width / last selected line: 0
  117. -- icon id / first selected line: 17885 / 17885
  118. -- text alignment: 1
  119. -- font id: 0
  120. -- text size: 12
  121. -- style flags: 0
  122. -- line height: 16
  123. -- part name: Home
  124. ----- HyperTalk script -----
  125. on mouseUp
  126.   if the optionkey is down then
  127.     domenu "quit hypercard"
  128.     exit mouseUp
  129.   end if
  130.   visual iris open to inverse
  131.   visual dissolve
  132.   go home
  133. end mouseUp
  134.  
  135.  
  136.  
  137. -- part 8 (button)
  138. -- low flags: 00
  139. -- high flags: 2000
  140. -- rect: left=2 top=37 right=68 bottom=35
  141. -- title width / last selected line: 0
  142. -- icon id / first selected line: 14953 / 14953
  143. -- text alignment: 1
  144. -- font id: 0
  145. -- text size: 12
  146. -- style flags: 0
  147. -- line height: 16
  148. -- part name: 
  149. ----- HyperTalk script -----
  150. on mouseUp
  151.   go back
  152. end mouseUp
  153.  
  154.  
  155.  
  156. -- part 9 (button)
  157. -- low flags: 00
  158. -- high flags: 2000
  159. -- rect: left=470 top=71 right=110 bottom=505
  160. -- title width / last selected line: 0
  161. -- icon id / first selected line: 2478 / 2478
  162. -- text alignment: 1
  163. -- font id: 0
  164. -- text size: 12
  165. -- style flags: 0
  166. -- line height: 16
  167. -- part name: 
  168. ----- HyperTalk script -----
  169. on mouseUp
  170.   visual iris open to inverse
  171.   visual dissolve
  172.   go cd "about"
  173. end mouseUp
  174.  
  175.  
  176.  
  177. -- part 10 (button)
  178. -- low flags: 00
  179. -- high flags: 2000
  180. -- rect: left=15 top=241 right=266 bottom=36
  181. -- title width / last selected line: 0
  182. -- icon id / first selected line: 25860 / 25860
  183. -- text alignment: 1
  184. -- font id: 0
  185. -- text size: 12
  186. -- style flags: 0
  187. -- line height: 16
  188. -- part name: 
  189. ----- HyperTalk script -----
  190. on mouseUp
  191.   set the locktext of bg fld "deposit" to not the locktext of bg fld "deposit"
  192.   if the locktext of bg fld "deposit" is true then
  193.     set the icon of bg btn id 10 to 25860
  194.   else
  195.     set the icon of bg btn id 10 to 32477
  196.   end if
  197. end mouseUp
  198.  
  199.  
  200.  
  201. -- part 11 (button)
  202. -- low flags: 00
  203. -- high flags: 2000
  204. -- rect: left=15 top=267 right=289 bottom=35
  205. -- title width / last selected line: 0
  206. -- icon id / first selected line: 30269 / 30269
  207. -- text alignment: 1
  208. -- font id: 0
  209. -- text size: 12
  210. -- style flags: 0
  211. -- line height: 16
  212. -- part name: 
  213. ----- HyperTalk script -----
  214. on mouseUp
  215.   if the optionKey is down then
  216.     put empty into bg fld "deposit"
  217.     exit mouseUp
  218.   end if
  219.   beep
  220.   answer "Clear this card?" with "Yes" or "No"
  221.   if it is "Yes" then
  222.     put empty into bg fld "deposit"
  223.   end if
  224. end mouseUp
  225.  
  226.  
  227.  
  228. -- part 12 (button)
  229. -- low flags: 00
  230. -- high flags: A000
  231. -- rect: left=214 top=293 right=340 bottom=275
  232. -- title width / last selected line: 0
  233. -- icon id / first selected line: 159 / 159
  234. -- text alignment: 1
  235. -- font id: 0
  236. -- text size: 12
  237. -- style flags: 0
  238. -- line height: 16
  239. -- part name: Reconcile
  240. ----- HyperTalk script -----
  241. on mouseUp
  242.   visual iris open to inverse
  243.   visual dissolve
  244.   go cd "reconcile"
  245. end mouseUp
  246.  
  247.  
  248.  
  249. -- part 13 (button)
  250. -- low flags: 00
  251. -- high flags: A000
  252. -- rect: left=275 top=291 right=342 bottom=349
  253. -- title width / last selected line: 0
  254. -- icon id / first selected line: 21690 / 21690
  255. -- text alignment: 1
  256. -- font id: 0
  257. -- text size: 12
  258. -- style flags: 0
  259. -- line height: 16
  260. -- part name: Check Register
  261. ----- HyperTalk script -----
  262. on mouseUp
  263.   visual iris open to inverse
  264.   visual dissolve
  265.   go cd "checklist"
  266. end mouseUp
  267.  
  268.  
  269.  
  270. -- part 14 (button)
  271. -- low flags: 00
  272. -- high flags: 2000
  273. -- rect: left=470 top=41 right=72 bottom=505
  274. -- title width / last selected line: 0
  275. -- icon id / first selected line: 21060 / 21060
  276. -- text alignment: 1
  277. -- font id: 0
  278. -- text size: 12
  279. -- style flags: 0
  280. -- line height: 16
  281. -- part name: 
  282. ----- HyperTalk script -----
  283. on mouseUp
  284.   DoList 998,"About Business Plan,"& "Adding categories,Category viewing,Check register,"& "Comparing reports,Creating reports,Deleting categories,"& "Deleting entries,Editing entries,Entering checks,"& "Entering deposits,Importing,"& "Opening reports,Period report,Printing reports,Reconciling,"& "Reports,Saving reports,Searching for items,Shareware notice,"& "Sorting checks,Yearly report",1
  285.   if the result > 0 then
  286.     put item 2 of the result into theTopic
  287.     put "‚óä‚óä " & thetopic into thetopic
  288.     visual iris open to inverse
  289.     visual dissolve
  290.     go cd "Help"
  291.     find string theTopic in bg fld "help"
  292.   end if
  293.   click at 100,0
  294. end mouseUp
  295.  
  296.  
  297.  
  298.  
  299. -- part 16 (button)
  300. -- low flags: 00
  301. -- high flags: 2000
  302. -- rect: left=0 top=307 right=340 bottom=35
  303. -- title width / last selected line: 0
  304. -- icon id / first selected line: 19381 / 19381
  305. -- text alignment: 1
  306. -- font id: 0
  307. -- text size: 12
  308. -- style flags: 0
  309. -- line height: 16
  310. -- part name: 
  311. ----- HyperTalk script -----
  312. on mouseUp
  313.   go cd "checklist"
  314. end mouseUp
  315.  
  316.  
  317.  
  318. -- part 17 (button)
  319. -- low flags: 00
  320. -- high flags: 2000
  321. -- rect: left=477 top=307 right=340 bottom=512
  322. -- title width / last selected line: 0
  323. -- icon id / first selected line: 22308 / 22308
  324. -- text alignment: 1
  325. -- font id: 0
  326. -- text size: 12
  327. -- style flags: 0
  328. -- line height: 16
  329. -- part name: 
  330. ----- HyperTalk script -----
  331. on mouseUp
  332.   go next cd
  333. end mouseUp
  334.  
  335.  
  336.  
  337. -- part 18 (button)
  338. -- low flags: 00
  339. -- high flags: A000
  340. -- rect: left=349 top=291 right=340 bottom=410
  341. -- title width / last selected line: 0
  342. -- icon id / first selected line: 8538 / 8538
  343. -- text alignment: 1
  344. -- font id: 0
  345. -- text size: 12
  346. -- style flags: 0
  347. -- line height: 16
  348. -- part name: Search...
  349. ----- HyperTalk script -----
  350. on mouseUp
  351.   global match
  352.   put "Choose criteria to search by." into bg fld "note"
  353.   set visible of bg fld "note" to true
  354.   DoList 998,("Date,Deposit Number,Description,Amount"),1
  355.   if the result > 0 then
  356.     put item 2 of the result into criteria
  357.     put criteria into criteria2
  358.     if criteria = "date" then put 1 into criteria
  359.     if criteria = "Deposit Number" then put 2 into criteria
  360.     if criteria = "Description" then put 3 into criteria
  361.     if criteria = "Amount" then put 4 into criteria
  362.     set visible of bg fld "note" to false
  363.     ask "Find what string?"
  364.     if it is empty then exit mouseUp
  365.     put it into theString
  366.     put empty into theList
  367.     put 1 into x
  368.     repeat for the number of lines in bg fld "deposit"
  369.       if item criteria of line x of bg fld "deposit" = theString then
  370.         put line x of bg fld "deposit" & return after theList
  371.       end if
  372.       put x + 1 into x
  373.     end repeat
  374.     if theList is not empty then
  375.       put "MATCHES FOUND:" & RETURN & return & theLIst into bg fld "theList"
  376.       set scroll of bg fld "thelist" to 0
  377.       set visible of bg fld "theList" to true
  378.       set visible of bg btn "OK" to true
  379.       set visible of cd btn "cross-search" to true
  380.     else
  381.       play harpsichord c6
  382.       answer "The string " & quote & theSTring & quote & " was not found using search criteria " & quote & criteria2 & quote & "."
  383.     end if
  384.   end if
  385.   set visible of bg fld "note" to false
  386. end mouseUp
  387.  
  388.  
  389.  
  390. -- part 19 (field)
  391. -- low flags: 81
  392. -- high flags: 0002
  393. -- rect: left=143 top=44 right=64 bottom=360
  394. -- title width / last selected line: 0
  395. -- icon id / first selected line: 0 / 0
  396. -- text alignment: 1
  397. -- font id: 21
  398. -- text size: 12
  399. -- style flags: 256
  400. -- line height: 16
  401. -- part name: note
  402.  
  403.  
  404. -- part 20 (field)
  405. -- low flags: 80
  406. -- high flags: 0007
  407. -- rect: left=35 top=39 right=287 bottom=464
  408. -- title width / last selected line: 0
  409. -- icon id / first selected line: 0 / 0
  410. -- text alignment: 0
  411. -- font id: 3
  412. -- text size: 9
  413. -- style flags: 0
  414. -- line height: 12
  415. -- part name: thelist
  416.  
  417.  
  418. -- part 21 (button)
  419. -- low flags: 80
  420. -- high flags: A003
  421. -- rect: left=418 top=293 right=317 bottom=475
  422. -- title width / last selected line: 0
  423. -- icon id / first selected line: 0 / 0
  424. -- text alignment: 1
  425. -- font id: 0
  426. -- text size: 12
  427. -- style flags: 0
  428. -- line height: 16
  429. -- part name: OK
  430. ----- HyperTalk script -----
  431. on mouseUp
  432.   set visible of bg fld "theList" to false
  433.   set visible of bg btn "OK" to false
  434.   set visible of cd btn "cross-search" to false
  435.   set visible of cd btn "revert" to false
  436. end mouseUp
  437.  
  438.  
  439.  
  440. -- part 23 (field)
  441. -- low flags: 81
  442. -- high flags: 0004
  443. -- rect: left=65 top=72 right=297 bottom=442
  444. -- title width / last selected line: 0
  445. -- icon id / first selected line: 0 / 0
  446. -- text alignment: 0
  447. -- font id: 3
  448. -- text size: 9
  449. -- style flags: 0
  450. -- line height: 12
  451. -- part name: help
  452. ----- HyperTalk script -----
  453. on mouseUp
  454.   Zoomer 65,72,442,297,154,144,354,229
  455.   Zoomer 154,144,354,229,12,30,34,52
  456.   hide pict of this cd
  457.   hide bg fld "help"
  458.  
  459. end mouseUp
  460.  
  461.  
  462.